﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using log4net;

namespace Quartz.Net.Utils
{

    public static class Logs
    {
        /// <summary>
        /// ILog 的接口
        /// </summary>
        private static ILog log = LogManager.GetLogger("iNotes");


        /// <summary>
        /// 致命性错误
        /// </summary>
        /// <param name="LOGERRORLOG">错误详细信息</param>
        /// <param name="LOGACTIONCLICK">信息简介</param>
        public static void Fatal(string LOGERRORLOG, string LOGACTIONCLICK)
        {
            log.Fatal(new LogContent(LOGERRORLOG, LOGACTIONCLICK));
        }
        /// <summary>
        /// 一般错误
        /// </summary>
        /// <param name="LOGERRORLOG">错误详细信息</param>
        /// <param name="LOGACTIONCLICK">信息简介</param>
        public static void Error(string LOGERRORLOG, string LOGACTIONCLICK)
        {
            log.Error(new LogContent(LOGERRORLOG, LOGACTIONCLICK));
        }
        /// <summary>
        /// 警告
        /// </summary>
        /// <param name="LOGERRORLOG">错误详细信息</param>
        /// <param name="LOGACTIONCLICK">信息简介</param>
        public static void Warn(string LOGERRORLOG, string LOGACTIONCLICK)
        {
            log.Warn(new LogContent(LOGERRORLOG, LOGACTIONCLICK));
        }
        /// <summary>
        /// 一般信息
        /// </summary>
        /// <param name="LOGERRORLOG">错误详细信息</param>
        /// <param name="LOGACTIONCLICK">信息简介</param>
        public static void Info(string LOGERRORLOG, string LOGACTIONCLICK)
        {
            log.Info(new LogContent(LOGERRORLOG, LOGACTIONCLICK));
        }
        /// <summary>
        /// 调试信息
        /// </summary>
        /// <param name="LOGERRORLOG">错误详细信息</param>
        /// <param name="LOGACTIONCLICK">信息简介</param>
        public static void Debug(string LOGERRORLOG, string LOGACTIONCLICK)
        {
            log.Debug(new LogContent(LOGERRORLOG, LOGACTIONCLICK));
        }

    }
}
